package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceOrdersitemsMapper;
import com.ruoyi.service.domain.ServiceOrdersitems;
import com.ruoyi.service.service.IServiceOrdersitemsService;

/**
 * 订单与服务项目对应表Service业务层处理
 * 
 * @author ZDL
 * @date 2024-11-12
 */
@Service
public class ServiceOrdersitemsServiceImpl implements IServiceOrdersitemsService 
{
    @Autowired
    private ServiceOrdersitemsMapper serviceOrdersitemsMapper;

    /**
     * 查询订单与服务项目对应表
     * 
     * @param ordersitemsId 订单与服务项目对应表主键
     * @return 订单与服务项目对应表
     */
    @Override
    public ServiceOrdersitems selectServiceOrdersitemsByOrdersitemsId(Long ordersitemsId)
    {
        return serviceOrdersitemsMapper.selectServiceOrdersitemsByOrdersitemsId(ordersitemsId);
    }

    /**
     * 查询订单与服务项目对应表列表
     * 
     * @param serviceOrdersitems 订单与服务项目对应表
     * @return 订单与服务项目对应表
     */
    @Override
    public List<ServiceOrdersitems> selectServiceOrdersitemsList(ServiceOrdersitems serviceOrdersitems)
    {
        return serviceOrdersitemsMapper.selectServiceOrdersitemsList(serviceOrdersitems);
    }

    /**
     * 新增订单与服务项目对应表
     * 
     * @param serviceOrdersitems 订单与服务项目对应表
     * @return 结果
     */
    @Override
    public int insertServiceOrdersitems(ServiceOrdersitems serviceOrdersitems)
    {
        return serviceOrdersitemsMapper.insertServiceOrdersitems(serviceOrdersitems);
    }

    /**
     * 修改订单与服务项目对应表
     * 
     * @param serviceOrdersitems 订单与服务项目对应表
     * @return 结果
     */
    @Override
    public int updateServiceOrdersitems(ServiceOrdersitems serviceOrdersitems)
    {
        return serviceOrdersitemsMapper.updateServiceOrdersitems(serviceOrdersitems);
    }

    /**
     * 批量删除订单与服务项目对应表
     * 
     * @param ordersitemsIds 需要删除的订单与服务项目对应表主键
     * @return 结果
     */
    @Override
    public int deleteServiceOrdersitemsByOrdersitemsIds(Long[] ordersitemsIds)
    {
        return serviceOrdersitemsMapper.deleteServiceOrdersitemsByOrdersitemsIds(ordersitemsIds);
    }

    /**
     * 删除订单与服务项目对应表信息
     * 
     * @param ordersitemsId 订单与服务项目对应表主键
     * @return 结果
     */
    @Override
    public int deleteServiceOrdersitemsByOrdersitemsId(Long ordersitemsId)
    {
        return serviceOrdersitemsMapper.deleteServiceOrdersitemsByOrdersitemsId(ordersitemsId);
    }
}
